﻿using System;
using System.Collections.Generic;

namespace Water_and_electricity_metering_management_system.Models.Entitys;

public partial class Buiding
{
    public int Id { get; set; }

    public string BuidingName { get; set; } = null!;

    public int HomeNumbe { get; set; }

    public decimal WaterBalance { get; set; }

    public decimal ElectricityBalance { get; set; }

    public static explicit operator Buiding(bool v)
    {
        throw new NotImplementedException();
    }

    // 重写ToString方法
    public override string ToString()
    {
        return $"楼栋: {BuidingName}, 宿舍号: {HomeNumbe}, 水费余额: {WaterBalance}, 电费余额: {ElectricityBalance}";
    }

}
